package com.beamfield.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RebarInboundExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RebarInboundExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRebar_inbound_idIsNull() {
            addCriterion("rebar_inbound_id is null");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idIsNotNull() {
            addCriterion("rebar_inbound_id is not null");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idEqualTo(Long value) {
            addCriterion("rebar_inbound_id =", value, "rebar_inbound_id");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idNotEqualTo(Long value) {
            addCriterion("rebar_inbound_id <>", value, "rebar_inbound_id");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idGreaterThan(Long value) {
            addCriterion("rebar_inbound_id >", value, "rebar_inbound_id");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idGreaterThanOrEqualTo(Long value) {
            addCriterion("rebar_inbound_id >=", value, "rebar_inbound_id");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idLessThan(Long value) {
            addCriterion("rebar_inbound_id <", value, "rebar_inbound_id");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idLessThanOrEqualTo(Long value) {
            addCriterion("rebar_inbound_id <=", value, "rebar_inbound_id");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idIn(List<Long> values) {
            addCriterion("rebar_inbound_id in", values, "rebar_inbound_id");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idNotIn(List<Long> values) {
            addCriterion("rebar_inbound_id not in", values, "rebar_inbound_id");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idBetween(Long value1, Long value2) {
            addCriterion("rebar_inbound_id between", value1, value2, "rebar_inbound_id");
            return (Criteria) this;
        }

        public Criteria andRebar_inbound_idNotBetween(Long value1, Long value2) {
            addCriterion("rebar_inbound_id not between", value1, value2, "rebar_inbound_id");
            return (Criteria) this;
        }

        public Criteria andInbound_idIsNull() {
            addCriterion("inbound_id is null");
            return (Criteria) this;
        }

        public Criteria andInbound_idIsNotNull() {
            addCriterion("inbound_id is not null");
            return (Criteria) this;
        }

        public Criteria andInbound_idEqualTo(Long value) {
            addCriterion("inbound_id =", value, "inbound_id");
            return (Criteria) this;
        }

        public Criteria andInbound_idNotEqualTo(Long value) {
            addCriterion("inbound_id <>", value, "inbound_id");
            return (Criteria) this;
        }

        public Criteria andInbound_idGreaterThan(Long value) {
            addCriterion("inbound_id >", value, "inbound_id");
            return (Criteria) this;
        }

        public Criteria andInbound_idGreaterThanOrEqualTo(Long value) {
            addCriterion("inbound_id >=", value, "inbound_id");
            return (Criteria) this;
        }

        public Criteria andInbound_idLessThan(Long value) {
            addCriterion("inbound_id <", value, "inbound_id");
            return (Criteria) this;
        }

        public Criteria andInbound_idLessThanOrEqualTo(Long value) {
            addCriterion("inbound_id <=", value, "inbound_id");
            return (Criteria) this;
        }

        public Criteria andInbound_idIn(List<Long> values) {
            addCriterion("inbound_id in", values, "inbound_id");
            return (Criteria) this;
        }

        public Criteria andInbound_idNotIn(List<Long> values) {
            addCriterion("inbound_id not in", values, "inbound_id");
            return (Criteria) this;
        }

        public Criteria andInbound_idBetween(Long value1, Long value2) {
            addCriterion("inbound_id between", value1, value2, "inbound_id");
            return (Criteria) this;
        }

        public Criteria andInbound_idNotBetween(Long value1, Long value2) {
            addCriterion("inbound_id not between", value1, value2, "inbound_id");
            return (Criteria) this;
        }

        public Criteria andBatch_numIsNull() {
            addCriterion("batch_num is null");
            return (Criteria) this;
        }

        public Criteria andBatch_numIsNotNull() {
            addCriterion("batch_num is not null");
            return (Criteria) this;
        }

        public Criteria andBatch_numEqualTo(String value) {
            addCriterion("batch_num =", value, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numNotEqualTo(String value) {
            addCriterion("batch_num <>", value, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numGreaterThan(String value) {
            addCriterion("batch_num >", value, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numGreaterThanOrEqualTo(String value) {
            addCriterion("batch_num >=", value, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numLessThan(String value) {
            addCriterion("batch_num <", value, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numLessThanOrEqualTo(String value) {
            addCriterion("batch_num <=", value, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numLike(String value) {
            addCriterion("batch_num like", value, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numNotLike(String value) {
            addCriterion("batch_num not like", value, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numIn(List<String> values) {
            addCriterion("batch_num in", values, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numNotIn(List<String> values) {
            addCriterion("batch_num not in", values, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numBetween(String value1, String value2) {
            addCriterion("batch_num between", value1, value2, "batch_num");
            return (Criteria) this;
        }

        public Criteria andBatch_numNotBetween(String value1, String value2) {
            addCriterion("batch_num not between", value1, value2, "batch_num");
            return (Criteria) this;
        }

        public Criteria andNumberIsNull() {
            addCriterion("number is null");
            return (Criteria) this;
        }

        public Criteria andNumberIsNotNull() {
            addCriterion("number is not null");
            return (Criteria) this;
        }

        public Criteria andNumberEqualTo(Double value) {
            addCriterion("number =", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotEqualTo(Double value) {
            addCriterion("number <>", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThan(Double value) {
            addCriterion("number >", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThanOrEqualTo(Double value) {
            addCriterion("number >=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThan(Double value) {
            addCriterion("number <", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThanOrEqualTo(Double value) {
            addCriterion("number <=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberIn(List<Double> values) {
            addCriterion("number in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotIn(List<Double> values) {
            addCriterion("number not in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberBetween(Double value1, Double value2) {
            addCriterion("number between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotBetween(Double value1, Double value2) {
            addCriterion("number not between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andCountIsNull() {
            addCriterion("count is null");
            return (Criteria) this;
        }

        public Criteria andCountIsNotNull() {
            addCriterion("count is not null");
            return (Criteria) this;
        }

        public Criteria andCountEqualTo(Integer value) {
            addCriterion("count =", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotEqualTo(Integer value) {
            addCriterion("count <>", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountGreaterThan(Integer value) {
            addCriterion("count >", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("count >=", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountLessThan(Integer value) {
            addCriterion("count <", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountLessThanOrEqualTo(Integer value) {
            addCriterion("count <=", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountIn(List<Integer> values) {
            addCriterion("count in", values, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotIn(List<Integer> values) {
            addCriterion("count not in", values, "count");
            return (Criteria) this;
        }

        public Criteria andCountBetween(Integer value1, Integer value2) {
            addCriterion("count between", value1, value2, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotBetween(Integer value1, Integer value2) {
            addCriterion("count not between", value1, value2, "count");
            return (Criteria) this;
        }

        public Criteria andCheck_numIsNull() {
            addCriterion("check_num is null");
            return (Criteria) this;
        }

        public Criteria andCheck_numIsNotNull() {
            addCriterion("check_num is not null");
            return (Criteria) this;
        }

        public Criteria andCheck_numEqualTo(String value) {
            addCriterion("check_num =", value, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numNotEqualTo(String value) {
            addCriterion("check_num <>", value, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numGreaterThan(String value) {
            addCriterion("check_num >", value, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numGreaterThanOrEqualTo(String value) {
            addCriterion("check_num >=", value, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numLessThan(String value) {
            addCriterion("check_num <", value, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numLessThanOrEqualTo(String value) {
            addCriterion("check_num <=", value, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numLike(String value) {
            addCriterion("check_num like", value, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numNotLike(String value) {
            addCriterion("check_num not like", value, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numIn(List<String> values) {
            addCriterion("check_num in", values, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numNotIn(List<String> values) {
            addCriterion("check_num not in", values, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numBetween(String value1, String value2) {
            addCriterion("check_num between", value1, value2, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_numNotBetween(String value1, String value2) {
            addCriterion("check_num not between", value1, value2, "check_num");
            return (Criteria) this;
        }

        public Criteria andCheck_dateIsNull() {
            addCriterion("check_date is null");
            return (Criteria) this;
        }

        public Criteria andCheck_dateIsNotNull() {
            addCriterion("check_date is not null");
            return (Criteria) this;
        }

        public Criteria andCheck_dateEqualTo(Date value) {
            addCriterion("check_date =", value, "check_date");
            return (Criteria) this;
        }

        public Criteria andCheck_dateNotEqualTo(Date value) {
            addCriterion("check_date <>", value, "check_date");
            return (Criteria) this;
        }

        public Criteria andCheck_dateGreaterThan(Date value) {
            addCriterion("check_date >", value, "check_date");
            return (Criteria) this;
        }

        public Criteria andCheck_dateGreaterThanOrEqualTo(Date value) {
            addCriterion("check_date >=", value, "check_date");
            return (Criteria) this;
        }

        public Criteria andCheck_dateLessThan(Date value) {
            addCriterion("check_date <", value, "check_date");
            return (Criteria) this;
        }

        public Criteria andCheck_dateLessThanOrEqualTo(Date value) {
            addCriterion("check_date <=", value, "check_date");
            return (Criteria) this;
        }

        public Criteria andCheck_dateIn(List<Date> values) {
            addCriterion("check_date in", values, "check_date");
            return (Criteria) this;
        }

        public Criteria andCheck_dateNotIn(List<Date> values) {
            addCriterion("check_date not in", values, "check_date");
            return (Criteria) this;
        }

        public Criteria andCheck_dateBetween(Date value1, Date value2) {
            addCriterion("check_date between", value1, value2, "check_date");
            return (Criteria) this;
        }

        public Criteria andCheck_dateNotBetween(Date value1, Date value2) {
            addCriterion("check_date not between", value1, value2, "check_date");
            return (Criteria) this;
        }

        public Criteria andQrcodeIsNull() {
            addCriterion("qrcode is null");
            return (Criteria) this;
        }

        public Criteria andQrcodeIsNotNull() {
            addCriterion("qrcode is not null");
            return (Criteria) this;
        }

        public Criteria andQrcodeEqualTo(Long value) {
            addCriterion("qrcode =", value, "qrcode");
            return (Criteria) this;
        }

        public Criteria andQrcodeNotEqualTo(Long value) {
            addCriterion("qrcode <>", value, "qrcode");
            return (Criteria) this;
        }

        public Criteria andQrcodeGreaterThan(Long value) {
            addCriterion("qrcode >", value, "qrcode");
            return (Criteria) this;
        }

        public Criteria andQrcodeGreaterThanOrEqualTo(Long value) {
            addCriterion("qrcode >=", value, "qrcode");
            return (Criteria) this;
        }

        public Criteria andQrcodeLessThan(Long value) {
            addCriterion("qrcode <", value, "qrcode");
            return (Criteria) this;
        }

        public Criteria andQrcodeLessThanOrEqualTo(Long value) {
            addCriterion("qrcode <=", value, "qrcode");
            return (Criteria) this;
        }

        public Criteria andQrcodeIn(List<Long> values) {
            addCriterion("qrcode in", values, "qrcode");
            return (Criteria) this;
        }

        public Criteria andQrcodeNotIn(List<Long> values) {
            addCriterion("qrcode not in", values, "qrcode");
            return (Criteria) this;
        }

        public Criteria andQrcodeBetween(Long value1, Long value2) {
            addCriterion("qrcode between", value1, value2, "qrcode");
            return (Criteria) this;
        }

        public Criteria andQrcodeNotBetween(Long value1, Long value2) {
            addCriterion("qrcode not between", value1, value2, "qrcode");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andOperatorIsNull() {
            addCriterion("operator is null");
            return (Criteria) this;
        }

        public Criteria andOperatorIsNotNull() {
            addCriterion("operator is not null");
            return (Criteria) this;
        }

        public Criteria andOperatorEqualTo(Long value) {
            addCriterion("operator =", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotEqualTo(Long value) {
            addCriterion("operator <>", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorGreaterThan(Long value) {
            addCriterion("operator >", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
            addCriterion("operator >=", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLessThan(Long value) {
            addCriterion("operator <", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLessThanOrEqualTo(Long value) {
            addCriterion("operator <=", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorIn(List<Long> values) {
            addCriterion("operator in", values, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotIn(List<Long> values) {
            addCriterion("operator not in", values, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorBetween(Long value1, Long value2) {
            addCriterion("operator between", value1, value2, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotBetween(Long value1, Long value2) {
            addCriterion("operator not between", value1, value2, "operator");
            return (Criteria) this;
        }

        public Criteria andAddtimeIsNull() {
            addCriterion("addtime is null");
            return (Criteria) this;
        }

        public Criteria andAddtimeIsNotNull() {
            addCriterion("addtime is not null");
            return (Criteria) this;
        }

        public Criteria andAddtimeEqualTo(Date value) {
            addCriterion("addtime =", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotEqualTo(Date value) {
            addCriterion("addtime <>", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeGreaterThan(Date value) {
            addCriterion("addtime >", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("addtime >=", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeLessThan(Date value) {
            addCriterion("addtime <", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeLessThanOrEqualTo(Date value) {
            addCriterion("addtime <=", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeIn(List<Date> values) {
            addCriterion("addtime in", values, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotIn(List<Date> values) {
            addCriterion("addtime not in", values, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeBetween(Date value1, Date value2) {
            addCriterion("addtime between", value1, value2, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotBetween(Date value1, Date value2) {
            addCriterion("addtime not between", value1, value2, "addtime");
            return (Criteria) this;
        }

        public Criteria andUpdaterIsNull() {
            addCriterion("updater is null");
            return (Criteria) this;
        }

        public Criteria andUpdaterIsNotNull() {
            addCriterion("updater is not null");
            return (Criteria) this;
        }

        public Criteria andUpdaterEqualTo(Long value) {
            addCriterion("updater =", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterNotEqualTo(Long value) {
            addCriterion("updater <>", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterGreaterThan(Long value) {
            addCriterion("updater >", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterGreaterThanOrEqualTo(Long value) {
            addCriterion("updater >=", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterLessThan(Long value) {
            addCriterion("updater <", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterLessThanOrEqualTo(Long value) {
            addCriterion("updater <=", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterIn(List<Long> values) {
            addCriterion("updater in", values, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterNotIn(List<Long> values) {
            addCriterion("updater not in", values, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterBetween(Long value1, Long value2) {
            addCriterion("updater between", value1, value2, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterNotBetween(Long value1, Long value2) {
            addCriterion("updater not between", value1, value2, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updatetime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updatetime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updatetime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updatetime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updatetime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updatetime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updatetime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updatetime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updatetime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updatetime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updatetime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updatetime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andBeam_idIsNull() {
            addCriterion("beam_id is null");
            return (Criteria) this;
        }

        public Criteria andBeam_idIsNotNull() {
            addCriterion("beam_id is not null");
            return (Criteria) this;
        }

        public Criteria andBeam_idEqualTo(Long value) {
            addCriterion("beam_id =", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idNotEqualTo(Long value) {
            addCriterion("beam_id <>", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idGreaterThan(Long value) {
            addCriterion("beam_id >", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idGreaterThanOrEqualTo(Long value) {
            addCriterion("beam_id >=", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idLessThan(Long value) {
            addCriterion("beam_id <", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idLessThanOrEqualTo(Long value) {
            addCriterion("beam_id <=", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idIn(List<Long> values) {
            addCriterion("beam_id in", values, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idNotIn(List<Long> values) {
            addCriterion("beam_id not in", values, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idBetween(Long value1, Long value2) {
            addCriterion("beam_id between", value1, value2, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idNotBetween(Long value1, Long value2) {
            addCriterion("beam_id not between", value1, value2, "beam_id");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}